package com.api.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * (PayOrder)实体类
 *
 * @author makejava
 * @since 2021-09-02 13:23:59
 */
@Data
@AllArgsConstructor
public class PayOrder implements Serializable {
    private static final long serialVersionUID = -40427235813493299L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 商品唯一标识(ID)
     */
    private Integer productId;
    /**
     * 产品名称
     */
    private String productName;
    /**
     * 金额,单位元
     */
    private Double amount;
    /**
     * 商品数量
     */
    private Integer count;
    /**
     * 'cny' COMMENT '货币类型，cny-人民币 gbeans-勾豆'
     */
    private String currency;
    /**
     * 支付渠道：weChat-微信支付，aliPay-支付宝支付,applePay-苹果支付
     */
    private String channel;
    /**
     * 订单状态：1-未支付 2-支付成功 3-支付失败 -1-订单失效
     */
    private String status;
    /**
     * 渠道中的状态码值
     */
    private String channelStatus;
    /**
     * 类型 1-购买课程 2-充值
     */
    private String orderType;
    /**
     * 支付来源 1-app 2-h5 3-pc
     */
    private String source;
    /**
     * 127.0.0.1' COMMENT '用户支付IP
     */
    private String clientIp;
    /**
     * 购买账号id
     */
    private String buyId;
    /**
     * 外部支付渠道交易号
     */
    private String outTradeNo;
    /**
     * 创建时间
     */
    private String createdTime;
    /**
     * 更新时间
     */
    private String updatedTime;
    /**
     * 附加字段，KV json，例如:{"mobile":13020202,"success_url":123}
     */
    private String extra;
    /**
     * 商品订单编号
     */
    private String goodsOrderNo;
    /**
     * 支付所使用的平台：1 、2表示
     */
    private Integer platform;
    /**
     * 微信类型
     */
    private Integer wxType;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getChannelStatus() {
        return channelStatus;
    }

    public void setChannelStatus(String channelStatus) {
        this.channelStatus = channelStatus;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getBuyId() {
        return buyId;
    }

    public void setBuyId(String buyId) {
        this.buyId = buyId;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getGoodsOrderNo() {
        return goodsOrderNo;
    }

    public void setGoodsOrderNo(String goodsOrderNo) {
        this.goodsOrderNo = goodsOrderNo;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public Integer getWxType() {
        return wxType;
    }

    public void setWxType(Integer wxType) {
        this.wxType = wxType;
    }

}
